<?php
/**
 * 表单请求验证类
 */

namespace App\Http\Requests\Api;

class VerificationCodeRequest extends FormRequest
{
    public function rules()
    {
        return [
            // 发送手机验证码
//            'phone' => 'required|regex:/^1[34578]\d{9}$/|unique:users',
            // 发送图片验证码
            'captcha_key' => 'required|string',
            'captcha_code' => 'required|string',
        ];
    }

    public function attributes()
    {
        return [
            'captcha_key' => '图片验证码 key',
            'captcha_code' => '图片验证码',
        ];
    }

}
